#!/bin/sh
#iconv -f gb2312 -t utf-8 index.muse > indexa.muse
#mv indexa.muse index.muse

echo "convert text encoding from gb2312 to utf-8"
pwd

#convert *.muse encoding from gb2312 to utf-8
for i in `find . -name "*.muse"`; 
    do iconv -f gb2312 -t utf-8 $i -o $i.new; 
done

#mv *.new to * 
find . -name "*.new" | sed 's/\(.*\).new$/mv "&" "\1"/' | sh
